1064: SELECT *,id as mid FROM vpnproviders WHERE approved='Yes' and active='Yes' ORDER BY views desc LIMIT -1",15 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-1",15' at line 1